﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Job.Web.Framework;
using Job.Logic.BaseContent;
using Job.Entity;

namespace Job.Web.userControls.Hunter
{
    public partial class HunterJobItem : BaseCtrl
    {
        string jobNo = myR["jobno"].StringValue;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack) return;

            HunterJobLogic logic = new HunterJobLogic();
            JobHunter job = logic.GetDetail(jobNo);
            if (null == job)
            {
                Response.Write("<script>");
                Response.Write("  alert('查询的职位已不存在！');");
                Response.Write("  history.back();");
                Response.Write("</script>");
                Response.Flush();
                return;
            }

            this.lbJobNo.Text = job.JobNo;
            this.lbJobName.Text = job.Name;
            this.lbIndustry.Text = job.Industry;
            this.lbSalary.Text = job.Salary;
            this.lbAddress.Text = job.OfficeAddress;
            this.lbResponsibility.Text = Functions.HtmlEncode(job.Responsibility);
            this.lbRequired.Text = Functions.HtmlEncode(job.Grade);
            this.lbLinkman.Text = job.ContactName;
            this.lbLinkPhone.Text = job.ContactTel;
            this.lbLinkMail.Text = job.Email;
            this.lbLastModify.Text = job.CreateDate.Value.ToString("yyyy-MM-dd");

        }
    }
}